-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rustls hard-dependency #709
Conversation
Remove hard-dependency on `aws-lc-sys` by adding two new features: `rustls-ring` and `rustls-aws-lc-rs`. By default, `rustls-aws-lc-rs` is enabled (which is also a default feature for `hyper-rustls`), but the dependency on aws-lc-rs can be overriden by consumers of the library. Refs: XAMPPRocky#706
Thank you for your PR! However shouldn't the default feature be the one that allows it to compile on ARM? |
Yeah, you're right. I'll make |
Looks like ring somehow breaks Windows builds. |
I think I should make it clear that |
I'm not sure how that happened, but most dependencies (at least the ones I depend on) use ring by default when using rustls, I suppose because it was (de facto) standard for a while. |
That target triple is described as both supported and tested in the aws-lc-rs platform docs. You might consider opening an upstream issue if you're having trouble. In my experience they're very helpful for these sorts of problems. |
@XAMPPRocky do you think we could re-run the checks? I think some dependency briefly broke Windows builds, but that should be resolved now (hopefully 😄). And I'd say as long as we don't know if aws-lc-rs supports ARM cross-compilation, going with ring by default should be fine. |
Remove hard-dependency on
aws-lc-sys
by adding two new features:rustls-ring
andrustls-aws-lc-rs
.By default,
rustls-aws-lc-rs
is enabled (which is also a default feature forhyper-rustls
), but the dependency on aws-lc-rs can be overriden by consumers of the library.This should fix compilation on ARM, but we should maybe add a section about this in the README to let consumers know how to fix compilation issues for ARM.
Let me know if I should add a section to the README, or if there's better place to let user's know about this fix.
Closes: #706